import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
router.afterEach(() => {
  const closeDom = document.querySelector('.header-burger-btn')
  if(document.body.className.includes('header--menu-open')) {
    document.body.classList.remove('header--menu-open')
    closeDom.classList.remove('burger--active')
    return
  }
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
